package com.trinity.orders.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.trinity.orders.domain.XcOrders;

import java.util.List;

/**
 * 订单信息Mapper接口
 *
 * @author trinity
 * @date 2023-11-19
 */
public interface XcOrdersMapper extends BaseMapper<XcOrders> {
    /**
     * 查询订单信息
     *
     * @param id 订单信息主键
     * @return 订单信息
     */
    public XcOrders selectXcOrdersById(String id);

    public XcOrders selectXcOrdersByBusinessId(String businessId);

    /**
     * 查询订单信息列表
     *
     * @param xcOrders 订单信息
     * @return 订单信息集合
     */
    public List<XcOrders> selectXcOrdersList(XcOrders xcOrders);

    public List<XcOrders> selectOrderIdSList(String[] ids);

    /**
     * 新增订单信息
     *
     * @param xcOrders 订单信息
     * @return 结果
     */
    public int insertXcOrders(XcOrders xcOrders);

    /**
     * 修改订单信息
     *
     * @param xcOrders 订单信息
     * @return 结果
     */
    public int updateXcOrders(XcOrders xcOrders);

    /**
     * 删除订单信息
     *
     * @param id 订单信息主键
     * @return 结果
     */
    public int deleteXcOrdersById(String id);

    /**
     * 批量删除订单信息
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteXcOrdersByIds(String[] ids);

    public int deleteXcOrdersByOutBusinessId(String[] ids);

    XcOrders getOrderByBusinessIdAndState(String businessId, String state);
}
